package com.zksb.service.impl;

import com.zksb.dao.FoodDao;
import com.zksb.entity.Food;
import com.zksb.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class FoodServiceImpl implements FoodService {

    @Autowired
    private FoodDao foodDao;

    @Override
    public List<Food> find() {
        return foodDao.find();
    }

    @Override
    public Food get(Serializable id) {
        return foodDao.get(id);
    }

}
